/*
 * @Description:
 * @Author: wangqi
 * @Date: 2024-08-29 09:27:46
 * @LastEditTime: 2024-09-09 11:12:30
 * @LastEditAuthor: wangqi
 */
import { NestFactory } from '@nestjs/core';
import { AppModule } from './app.module';
// import { Logger } from 'nestjs-pino';
import { HttpExceptionFilter } from 'src/filters/http-exception.filter';
import 'reflect-metadata';

async function bootstrap() {
  const app = await NestFactory.create(AppModule, {
    cors: true,
    // logger: false,
    // logger: ['error', 'warn'],
  });

  app.useGlobalFilters(new HttpExceptionFilter());
  // app.useLogger(app.get(Logger));
  await app.listen(3001);
}
bootstrap();
